cmake_minimum_required(VERSION 3.20)
project(TCP)

set(CMAKE_CXX_STANDARD 11)

set(base_head
        base/Buffer.h
        )

set(base_member
        base/Buffer.cpp
        )

set(tcp_head
        tcp/InetAddress.h
        tcp/Socket.h
        tcp/Acceptor.h
        tcp/TcpConnection.h
        tcp/TcpServer.h
        )

set(tcp_member
        tcp/InetAddress.cpp
        tcp/Socket.cpp
        tcp/Acceptor.cpp
        tcp/TcpConnection.cpp
        tcp/TcpServer.cpp
        )

add_executable(TCP
        ${base_head}
        ${base_member}
        ${tcp_head}
        ${tcp_member}
        main.cpp)